trace: insert compiler memory barriers
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 5 Jul 2010 07:24:18 +0000 (08:24 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 5 Jul 2010 07:24:18 +0000 (08:24 +0100)
commit712b05770c8dd3673310188f30616b7f6a3a1b22
tree37d9e30fc824561f1083214253722bf4c1afe64d
parent2604adda4f817c3d9bf81a9c45b2bafda79ec4e9
trace: insert compiler memory barriers

This is to ensure fields shared writably with Dom0 get read only once
for any consistency checking followed by actual calculations.

I realized there was another multiple-read issue, a fix for which is
also included (which at once simplifies __insert_record()).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/common/trace.c